package evol;

import java.util.ArrayList;

import nodes.Node;
import func.rank.RankFunction;

public class OutputterComposite implements TreeOutputter {
	
	private TreeOutputter out1;
	private TreeOutputter out2;

	public OutputterComposite(TreeOutputter out1, TreeOutputter out2) {
		this.out1 = out1;
		this.out2 = out2;
	}

	@Override
	public <T> void output(ArrayList<Node<T>> population, RankFunction<T> rank) {
		out1.output(population, rank);
		out2.output(population, rank);
	}
}
